import request from '@/utils/request'

/**
 * 获取日志信息
 * @param data
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const loadLogInfoApi = (data) => {
    return request.get('/log/getLogs', {
        params: data
    })
}
/*
 * 删除日志信息
 */
export const deleteLogInfoApi = (logId) => {
    return request.delete(`/log/deleteLogById/${logId}`)
}
/**
 * 批量删除日志信息
 * @param ids
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const deleteBatchLogInfoApi = (ids) => {
    return request.delete('/log/deleteLogBatch', { data: ids })
}